package com.jxtti.dao;

import java.util.List;
import java.util.Map;

import com.jxtti.entity.TAirCityHourAQIDataPublish;
/**
 * 
 * <br>
 * <b>功能：</b>TAirCityHourAQIDataPublishDao<br>
 * <b>作者：lwb</b><br>
 * <b>日期：</b> Nov 26, 2015 <br>
 * <b>版权所有：<b>版权所有(C) 2015，<br>
 */
public interface TAirCityHourAQIDataPublishDao<T>  {
	

	/**
	 * 
	 * <br>
	 * <b>功能：</b>查询数据 <br>
	 */
	public List<TAirCityHourAQIDataPublish> queryByList(Map<String, Object> data);
	
	//辅助决策
	public List<Map<String, Object>> queryThelatestTAirCityHourAQI(Map<String, Object> data);
		
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>ID查询<br>
	 */
	public TAirCityHourAQIDataPublish queryTAirCityHourAQIDataPublishById(TAirCityHourAQIDataPublish  tAirCityHourAQIDataPublish);
	
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>添加数据<br>
	 */
	public int add(TAirCityHourAQIDataPublish entity);
	
	
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>修改数据<br>
	 */
	public int update(TAirCityHourAQIDataPublish entity);
	
	
		/**
	 * 
	 * <br>
	 * <b>功能：</b>删除数据<br>
	 */
	public int delete(TAirCityHourAQIDataPublish entity);
	
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>查询总记录数<br>
	 */
	public int queryByCount(TAirCityHourAQIDataPublish entity);
	
	
	/**
	 * 平均一天的因子值。
	 * @param data
	 * @return
	 */
	public TAirCityHourAQIDataPublish avgAQIAirCityHourReport(Map<String, Object> data);
	
	
	/**
	 * 每小时
	 * @param data
	 * @return
	 */
	public List<TAirCityHourAQIDataPublish>  groupCountAQIAirCityHourReport(Map<String, Object> data);
	
	//图表 多日 同时段 对比
	public List<TAirCityHourAQIDataPublish>  queryBySeveralDaysTimeSame(Map<String, Object> data);
	
	
	/**
	 * 计算O3 日平均。   8小时滑动
	 * @param time
	 * @return
	 */
	public void  calO3_8H_Avg(Map<String, Object> data);
}
